package com.test.user.facade;

import com.test.common.user.service.UserFeignClient;
import jakarta.annotation.Resource;
import org.example.dto.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user-service")
public class UserController {

    @Resource
    private UserFeignClient userFeignClient;

    @PostMapping("/getUser")
    public Result<String> getUser(){
        return new Result(userFeignClient.getUserInfo());
    }
}
